import request from '@/router/axios';
import {
  fenExYuangettoFixed, getAppealTypes, getIs_sup_payment,
  getLineName, getMappingStatus,
  getNoticeStates,
  getStationName, is_sup_payment,
  allStatus, noticeStates, getMappingStatusArray
} from "../../../../subwayRat/commonCheck";

/**
 * 列表
 * @param query
 */
export function getSwAuStationShortList(query) {
  return request({
    url: '/check/check/getSwAuStationShortList',
    method: 'post',
    params: query,
    data:query,
  })
}




export const xw_cz_bk_other_RYDLCK_option = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menu:false,
  menuAlign: 'center',
  viewBtn: false,
  editBtn: false,
  emptyBtn:false,
  delBtn: false,
  align: 'center',
  selection: true,
  reserveSelection:false,
  addBtn: false,
  height: 450,
  column: [{
    hide: true,
    label: '线路',
    prop: 'lineCode',
    type: 'select',
    search: false,
    searchslot: true,
    formatter: function(row, value , label, column){
  return getLineName(value);
}
  }, {
      hide: false,
      label: '站点',
      prop: 'stationCode',
      type: 'select',
      search: true,
    searchslot: true,
      formatter: function(row, value , label, column){
        return getStationName(row.lineCode,value);
      }
    },{
    label: '收入日期',
    prop: 'incomeTime',
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    width:160,
    //formslot:true,
    cell: true,
    type: 'date',
    hide: false,
    search: true
  },{
    hide: false,
    label: '补款日期',
    prop: 'extraMoneyTime',
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    type:'date',
    search: true
  }, {
    label: '补款金额',
    prop: 'shortAmount',
    formatter:function(row, value , label, column){
      var num =value / 100;
      num = num.toFixed(2);
      return num;
    },
    search: false,
    hide: false,
    type:'input',
  }, {
    label: '补款人',
    prop: 'conductorPersonName',
    search: true,
    searchslot:true,
    hide: false,
  }, {
    label: '补款人员工号',
    prop: 'conductorJobNo',
    search: false,
    hide: false,
  }, {
    label: '是否补款',
    prop: 'isNotice',
    dicData:[{label:'未补款',value:0},{label:'已补款',value:1}],
    formatter:function(row, value , label, column){
      return value == 0?'未补款':'已补款';
    },
    type: 'select',
    search: false
  },{
    label: '是否确认',
    prop: 'conductorConfirmStatus',
    search: false,
    type: 'select',
    dicData:getMappingStatusArray('extra_money_confirm'),
    formatter:function(row, value , label, column){
      return getMappingStatus('extra_money_confirm',value);
    },
    hide:true
  }]
}
